<template>
  <el-tabs v-model="activeName"  type="card" class="app-container" >
    <el-tab-pane label="花卉大棚" name="first">
      <EControl></EControl>
    </el-tab-pane>
    <el-tab-pane label="蔬菜大棚" name="t3">
      <EControl_SC></EControl_SC>
    </el-tab-pane>
    <el-tab-pane label="葡萄大棚" name="t4">
      <EControl_PT></EControl_PT>
    </el-tab-pane>
    <el-tab-pane label="控制日志" name="second">
      <ELog></ELog>
    </el-tab-pane>

  </el-tabs>
</template>

<script>
import EControl from "@/views/iot/relay/eControl.vue"
import EControl_SC from "@/views/iot/relay/eControl_SC.vue"
import EControl_PT from "@/views/iot/relay/eControl_PT.vue"
import ELog from "@/views/iot/log/index.vue"

export default {
  name: "relay",
  components:{EControl,EControl_SC,EControl_PT,ELog},
  data(){
    return{
      loading: true,
      activeName: 'first'
    }
  }

};
</script>
